import request from '@/utils/request'

// 查询存档恢复记录列表
export function listEquipmentArchivesRestore(data) {
  return request({
    url: '/equipmentArchivesRestore/listEquipmentArchivesRestore',
    method: 'post',
      data: data
  })
}

// 查询存档恢复记录详细
export function getEquipmentArchivesRestore(id) {
  return request({
    url: '/equipmentArchivesRestore/getEquipmentArchivesRestoreById?id=' + id,
    method: 'get'
  })
}

// 新增存档恢复记录
export function addEquipmentArchivesRestore(data) {
  return request({
    url: '/equipmentArchivesRestore/addEquipmentArchivesRestore',
    method: 'post',
    data: data
  })
}

// 修改存档恢复记录
export function updateEquipmentArchivesRestore(data) {
  return request({
    url: '/equipmentArchivesRestore/editEquipmentArchivesRestore',
    method: 'post',
    data: data
  })
}

// 删除存档恢复记录
export function delEquipmentArchivesRestore(id) {
  return request({
    url: '/equipmentArchivesRestore/delEquipmentArchivesRestore?ids=' + id,
    method: 'delete'
  })
}

// 批量恢复
export function addRestore(id) {
  return request({
    url: '/equipmentArchivesRestore/addRestore?ids=' + id,
    method: 'delete'
  })
}
